<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>卓望OA系统</title>
    <script type="text/javascript" src="js/jquery-1.9.1.min.js"></script>
  </head>
  
  <body>
  <h1>
  卓望OA模拟系统
  </h1>
  <div style="position:absolute;top:40;right:5px;">
  <form action="http://localhost:8080/router/sso/insertSSOAuth.do" method="get" target="_blank">
	  用户ID：<input name="userid"> 
	 SSOKey：<input name="ssoKey" id="ssoKey"> 
	 终端类型：<select name="t" id="t">
	 	<option value="eip">EIP</option>
	 	<option value="adnroid">Android</option>
	 </select>
	 <input type="submit" value="注册">
	 <input type="button" value="我要咨询" onclick="openChat();">
  </form>
  </div>
  <hr>
  <table width="100%" height="600px" border="1" cellspacing="0" bordercolor="#cccccc">
  	<tr>
  		<td width="15%">菜单...
  		</td>
  		<td>
  		<iframe frameborder="0" height="600px" width="100%" id="chatFrame"></iframe>
  		</td>
  	</tr>
  </table>
  <script type="text/javascript">
  function openChat(){
      var ssoKey = $("#ssoKey").val();
      var t = $("#t").val();
	  document.getElementById("chatFrame").src="http://localhost:8080/router/sso/inspectSSOAuth.do?ssoKey="+ssoKey+"&t="+t;	
	  /*var tmp=window.open("about:blank","","fullscreen=0")
	  tmp.moveTo(0,0);
      tmp.resizeTo(screen.width+20,screen.height);
      tmp.focus();
      tmp.location="http://localhost:8080/router/sso/inspectSSOAuth.do?ssoKey="+ssoKey+"&t="+t;	
*/
  }
  </script>
  </body>
</html>
